package com.wmyg.scanninggun.sdk;

import org.junit.Test;

public class SDKeasttest {

    @Test
    public void firstInstallTest() throws Throwable {
        SmartManager smartManager = ManageBuilder.buildManagerToInstall("east", "Admin", "antifake", "developchannel");
        smartManager.firstInstall(new String[]{""});
    }

    @Test
    public void installTest() throws Throwable {
        SmartManager smartManager = ManageBuilder.buildManagerToInstall("east", "Admin", "antifake", "developchannel");
        smartManager.install(new String[]{""});
    }

    @Test
    public void invokeTest() throws Throwable {
        SmartManager smartManager = ManageBuilder.buildManagerToUse("east", "User1", "track", "channeldemo");
        smartManager.invoke("createCar", new String[]{"ACAR369", "B", "C", "E", "F", "G"});
    }

    @Test
    public void queryTest() throws Throwable {
        SmartManager smartManager = ManageBuilder.buildManagerToUse("east", "User1", "antifake", "developchannel");
        System.out.println(smartManager.query("queryCar", new String[]{"X6933684005129ASD665FAS648good2018-01-01"}));
    }

}
